﻿var countUploadedImages = 0;
var total = 0;
var uploadedCount = 0;

$(document).ready(function () {
    $("div.imageUrl a").click(handleLoadImage);
});

var handleLoadImage = function (e) {
    var action = "/Master/LoadAllThumnail";
    var groupId = $("#hdnGroupId").val();
    var subGroupId = $("#hdnSubGroupId").val();
    var productId = $("#hdnProductId").val();
    var param = "?groupId=" + groupId + "&subGroupId=" + subGroupId +
        "&productId=" + productId;
    $("#toPopup").removeClass("mediumSize").addClass("largeSize");
    $("#popup").removeClass("mediumSize").addClass("largeSize");
    $("#popup").attr("src", action + param);
    showPopup();
    return false;
}